package lab02.test06;

public class Circle {

    double r;
    double perimeter;
    double area;
    final  double PI = 3.14;



    public double perimeter() {

        return PI * r * 2;
    }

    public double area() {

        return PI * r * r;
    }

    @Override
    public String toString() {
        return "圆的周长："+perimeter()+
                "\n圆的面积："+area();
    }
}
